# mklv volume_device_namemklv reads the entry in /etc/lvtab identified by volume_device_name (volume_device_name is the first field in the /etc/lvtab file) and creates the logical volume described. It labels the devices appropriately by writing logical volume labels in the volume headers of the disks used in the logical volume, then initializes the logical volume device for use. It is not necessary to run the lvinit command after running mklv.
Normally, mklv checks all the named devices to see if they are already part of a logical volume or contain a filesystem. The option -f forces mklv to skip those checks.
Various errors can arise when trying to create a logical volume. For example, one of the specified disks might be missing, the new lvtab entry might have a typographical error, or the partitions of a striped volume might not be exactly the same size.
If the partitions aren't exactly the same size, for example because the default partitioning for drives of similar sizes but from different manufacturers is slightly different, you will see an error message similar to this from mklv:
In this case, you need to adjust the partition sizes; see the section "Repartitioning a Disk With fx" in Chapter 2 for instructions.lv0:proj:stripes=2:devs= \
/dev/dsk/dks0d2s7, \
/dev/dsk/dks1d0s7 <INCORRECT PARTITION SIZE>
The mklv(1M) reference page describes the possible error messages and their meanings.